package zsy.test.properties.i18n;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author ZSY
 */
@Data
@Accessors(chain = true)
public class I18nDTO implements Comparable<I18nDTO> {

    private String id;

    private String message;

    @Override
    public int compareTo(I18nDTO other) {
        if (other.getId() == null) {
            return 0;
        }
        return this.id.compareTo(other.getId());
    }

    @Override
    public String toString() {
        return id + "=" + message;
    }
}
